<?php
declare (strict_types = 1);
namespace app\course\model\comment;

use app\common\model\BaseModel;
use think\model\concern\SoftDelete;

/**
 * 定义课程点评点赞模型
 */
class CommentLike extends BaseModel
{
    use SoftDelete;
    /**
     * 表名
     * @var string
     */
    protected $name = 'course_comment_like';

    /**
     * 设置自动写入时间
     * @var boolean
     */
    protected $autoWriteTimestamp = true;
    protected $updateTime         = false;
    // protected $hidden             = ['delete_time']; 

    /**
     * 定义字段类型
     * @var array
     */
    protected $type = [
        'id'          => 'integer',
        'delete_time' => 'integer',
        'create_time' => 'integer',
    ];

}
